2016 project-added to repo
[EroBeats.git] / Djinn and Tonic - Erobeats / Fonts.h
blob1a0e28217bbab1fe1dd0c558025dfd0fa92626c4
1 #pragma once
3 #include<SDL\SDL.h>
4 #include <SDL TTF\SDL_ttf .h>
5 #include<string>
7 #include<iostream>
9 #include "ResourceMaster.h"
11 class Fonts
13 public:
14 Fonts();
15 Fonts(int fontType, ResourceMaster* rsc);
16 Fonts(int fontType, ResourceMaster* rsc, SDL_Color color, std::string words, int rendering);
17 ~Fonts();
19 void changeColor();
20 void loadFont(SDL_Color color, std::string words, int rendering);
21 int prcnt(double objectLocation, char axis);
22 void updateWindow();
24 SDL_Texture* getTexture();
25 SDL_Rect* getPosition();
28 ResourceMaster* rsc;
29 TTF_Font *font;
30 SDL_Texture *fontTexture;
31 SDL_Rect* location;
32 SDL_Renderer* renderer;
33 int windowWidth;
34 int windowHeight;